package cz.muni.fi.pa165.sme.api.to;

/**
 * @author Martin Nov?k
 */
public class SportActivityTO {
    
    private Long id;
    private String title;
    private Float speed;
    
    public Long getId() {
        return id;
    }

    public void setId(final Long id) {
        this.id = id;
    }
    
    public String getTitle() {
        return title;
    }
    
    public void setTitle(final String title) {
        this.title = title;
    }
    
    public Float getSpeed() {
        return speed;
    }
    
    public void setSpeed(final Float speed) {
        this.speed = speed;
    }
    
    @Override
    public boolean equals(final Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        final SportActivityTO that = (SportActivityTO) o;

        if (id != null ? !id.equals(that.id) : that.id != null) return false;

        return true;
    }

    @Override
    public int hashCode() {
        return id != null ? id.hashCode() : 0;
    }

    @Override
    public String toString() {
        return "SportActivityTO{" +
            "id=" + id +
            ", title=" + title +
            ", speed=" + speed +
            '}';
    }
}
